<template>
    <div>
        <el-table  style="width: 100%">
    <el-table-column prop="date" label="Date" width="180" />
    <el-table-column prop="name" label="Name" width="180" />
    <el-table-column prop="address" label="Address" />
  </el-table>
    </div>
</template>


<script setup>

import { getCurrentInstance, onMounted } from 'vue';

const {proxy}=getCurrentInstance()

// 请求用户数据
const getUserData =async ()=>{
    let res= await proxy.$api.getUserData()
    console.log(res);
    
}
onMounted(()=>{
    getUserData()
})

</script>